import { h } from 'vue';
import { NTag } from 'naive-ui';
export const columns = [
  {
    title: '模型名称',
    key: 'modelName'
  },
  {
    title: '同步状态',
    key: 'syncStatus',
    render(row) {
      return h(
        NTag,
        {
          type: row.syncStatus === 1 ? 'success' : 'error',
        },
        {
          default: () => (row.syncStatus === 1 ? '已同步' : '未同步'),
        }
      );
    },
  },
  {
    title: '模型说明',
    key: 'modelComment'
  },
  {
    title: '创建人',
    key: 'createdBy'
  },
  {
    title: '创建时间',
    key: 'createdTime'
  },
];

